<%-- 
    Document   : AddDrop courses
    Created on : Dec 23, 2014, 11:10:45 PM
    Author     : Sherry
--%>

<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    
    <%@page import="model.student"%>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body style="background-image:url(JJ_Chen.jpg)">
      
       
        <h1 style="color: white;font-size: 20" >Choose Your Courses By Marking behind course </h1><br>
        <p style="color: white;font-size: 20">note: max number of registered courses must be 6 and any addition courses will be ignored </p>
         <form action="Servlet" method="get"><input type="hidden" name="action" value="sumbit" />
             <div class="aa" style="color: white;font-size: 20">
        <% 
            List<String> courses1=null;
        courses1= (List<String>)request.getSession(false).getAttribute("courses");
        
		
        for(int i=0;i<courses1.size();i++)
{%> 
         
        <input type="checkbox" name="<%=courses1.get(i)%>" value="<%=courses1.get(i)%>" ><%=courses1.get(i)%><br>
        <%} %>
             </div>
        
     <input type="submit" name="action" value="sumbit" />
</form>

    </body>
</html>